package com.cisystem.system.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cisystem.system.mapper.InnovationMapper;
import com.cisystem.system.domain.Innovation;
import com.cisystem.system.service.IInnovationService;

/**
 * innovationService业务层处理
 *
 * @author kelly
 * @date 2023-07-07
 */
@Service
public class InnovationServiceImpl implements IInnovationService {
    @Autowired
    private InnovationMapper innovationMapper;

    /**
     * 查询innovation
     *
     * @param id innovation主键
     * @return innovation
     */
    @Override
    public Innovation selectInnovationById(Long id) {
        return innovationMapper.selectInnovationById(id);
    }

    /**
     * 查询innovation列表
     *
     * @param innovation innovation
     * @return innovation
     */
    @Override
    public List<Innovation> selectInnovationList(Innovation innovation) {
        return innovationMapper.selectInnovationList(innovation);
    }

    /**
     * 新增innovation
     *
     * @param innovation innovation
     * @return 结果
     */
    @Override
    public int insertInnovation(Innovation innovation) {
        return innovationMapper.insertInnovation(innovation);
    }

    /**
     * 修改innovation
     *
     * @param innovation innovation
     * @return 结果
     */
    @Override
    public int updateInnovation(Innovation innovation) {
        return innovationMapper.updateInnovation(innovation);
    }

    /**
     * 批量删除innovation
     *
     * @param ids 需要删除的innovation主键
     * @return 结果
     */
    @Override
    public int deleteInnovationByIds(Long[] ids) {
        return innovationMapper.deleteInnovationByIds(ids);
    }

    /**
     * 删除innovation信息
     *
     * @param id innovation主键
     * @return 结果
     */
    @Override
    public int deleteInnovationById(Long id) {
        return innovationMapper.deleteInnovationById(id);
    }
}
